package cn.dansj.common.utils.spring.request;

import cn.dansj.common.utils.transfer.DefaultMethods;
import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "spring.servlet.request")
public class HttpRequestProperties extends DefaultMethods {
    private boolean allowCors = true;
    private String specialCharacters = "\"<>[\\]^`{|}";

    public boolean isAllowCors() {
        return allowCors;
    }

    public void setAllowCors(boolean allowCors) {
        this.allowCors = allowCors;
    }

    public String getSpecialCharacters() {
        return specialCharacters;
    }

    public void setSpecialCharacters(String specialCharacters) {
        this.specialCharacters = specialCharacters;
    }
}
